package com.dz.lm.dao.userapply.read;

import com.dz.lm.common.exception.DaoException;
import com.dz.lm.common.utils.stereotype.ReaderRepository;
import com.dz.lm.domain.userapply.UserApply;
import com.dz.lm.domain.userapply.UserApplyExample;

import java.util.List;
import java.util.Map;

@ReaderRepository("readUserApplyDao")
public interface UserApplyDao {


    List<UserApply> selectByExample(UserApplyExample example) throws DaoException;

    UserApply selectByPrimaryKey(Integer applyId)throws DaoException;

    int queryCount(UserApplyExample example) throws DaoException;

    List<UserApply> queryUser(Map map) throws DaoException;

    int queryUserCount(Map map) throws DaoException;

    Map queryaAgentUserAmount(Map map) throws DaoException;

    int queryCompProudctCount(Integer compPid) throws DaoException;
}